﻿<?php
require("conexao.php");

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Clientes</title>


</head>

<body>
<div class="tbglobal">
<div id="titulo">
Lista de Clientes
</div>
<div id="tabela">
  <table border="0" cellpadding="0" cellspacing="0" align="center" >
      <tr class="yellow">
        <td width="6%"><div align="center" class="style2">
          <div align="center">Id          </div>
        </div></td>
        <td width="11%"><div align="center" class="style2">
          <div align="center">Cliente</div>
        </div></td>
        <td width="14%"><div align="center" class="style2">
          <div align="center">Email</div>
        </div></td>
        <td><div align="center" class="style2">
          <div align="center">Login</div>
        </div></td>
        <td width="20%"><div align="center" class="style2">
          <div align="center">Data de Cadastro</div>
        </div></td>
        <td colspan="2"><div align="center" class="style2">Ação</div></td>
      </tr>
      <?php $sql = mysql_query("select * from usuario");
		while ($coluna = mysql_fetch_array($sql)) { ?>
      <tr>
        <td><div align="center"><span class="style3"><?php echo $coluna["idusuario"] ?></span></div></td>
        <td><div align="center"><span class="style3"><?php echo $coluna["nome"] ?></span> </div></td>
        <td><div align="center"><span class="style3"><?php echo $coluna["email"] ?></span></div></td>
        <td><div align="center"><span class="style3"><?php echo $coluna["login"] ?></span></div></td>
        <td><div align="center"><span class="style3"><?php echo $coluna["data_cad"] ?></span></div></td>
        <td width="14%"><a href="principal.php?link=17&amp;acao=Alterar&amp;id= <?php echo $coluna["idusuario"]; ?>" >
        <div align="center"><img src="imagens/lapis.gif" width="20" height="20" border = "0"/></div>
        </a></td>
  <td width="16%"><a href="principal.php?link=17&amp;acao=Excluir&amp;id= <?php echo $coluna["idusuario"]; ?>" >
      <div align="center"><img src="imagens/x.gif" width="20" height="20" border="0" /></div>
        </a></td>
    </tr>
      <?php } ?>
      <tr>
        <td colspan="7"><div align="right"><a href="principal.php?link=17"><img src="imagens/inserir.gif" width="44" height="39" border="0" /></a></div></td>
      </tr>
</table>
    
</div>
</div>

</body>
</html>
